package construct2DArray;

public class Solution {
    public int[][] construct2DArray(int[] original, int m, int n) {
        //
        int[][] ans = new int[m][n];
        for (int i = 0; i < original.length; i++) {
            ans[i/n][i%n] = original[i];
        }
        return ans;
    }
}
